home *** CD-ROM | disk | FTP | other *** search
- Path: vixen.cso.uiuc.edu!usenet
- From: HOTARD <jhotard>
- Newsgroups: comp.lang.c
- Subject: Basic Question on SWITCH
- Date: 24 Jan 1996 04:35:16 GMT
- Organization: University of Illinois at Urbana
- Message-ID: <4e4cu4$95f@vixen.cso.uiuc.edu>
- NNTP-Posting-Host: sparc36.cs.uiuc.edu
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.12 (X11; I; SunOS 5.4 sun4c)
- X-URL: news:comp.lang.c
-
- I am just learning how to program in C, and I had a question about switch.
- I am writing a program that looks at a character and then determines if it is a
- letter or number. This program must use the switch command , can I place a
- range on the case command somehow??
-
- ie: Switch (var)
- case 0-9:
-
- or case (isdigit):
-
- would anything like this work???
-
- Thanks in advance
-
- Justin
-
-